#import "OmChangePasswordVC.h"
@interface OmChangePasswordVC ()
@property (nonatomic, strong) UITextField *nowverificationCodeField;
@property (nonatomic, strong) UIView *lineForNowverificationCodeField;
@property (nonatomic, strong) UITextField *comfirmNewverificationCodeField;
@property (nonatomic, strong) UIView *lineForComfirmNewverificationCodeField;
@property (nonatomic, strong) UITextField *verificationCodeField;
@property (nonatomic, strong) UIView *lineForVerificationCodeField;
@property (nonatomic, strong) UIButton *sendButton;
@end
@implementation OmChangePasswordVC
- (void)configSelf {
    self.title = ASLocalizedString(@"忘记密码");
    [self setHiddenForTabBar:YES navigationBar:NO];
}
- (void)allocateComponents {
    self.nowverificationCodeField = [[UITextField alloc] init];
    [self.nowverificationCodeField setFont:RPXFont(15)];
    self.nowverificationCodeField.placeholder = ASLocalizedString(@"请输入新密码");
    [self.view addSubview:self.nowverificationCodeField];
    self.lineForNowverificationCodeField = [[UIView alloc] init].fp_backgroundColor(HexadecimalColor(@"#F07896"));
    [self.view addSubview:self.lineForNowverificationCodeField];
    self.comfirmNewverificationCodeField = [[UITextField alloc] init];
    [self.comfirmNewverificationCodeField setFont:RPXFont(15)];
    self.comfirmNewverificationCodeField.placeholder = ASLocalizedString(@"请再次输入新密码");
    [self.view addSubview:self.comfirmNewverificationCodeField];
    self.lineForComfirmNewverificationCodeField = [[UIView alloc] init].fp_backgroundColor(HexadecimalColor(@"#F07896"));
    [self.view addSubview:self.lineForComfirmNewverificationCodeField];
    self.verificationCodeField = [[UITextField alloc] init];
    [self.verificationCodeField setFont:RPXFont(15)];
    self.verificationCodeField.placeholder = ASLocalizedString(@"请输入验证码");
    [self.view addSubview:self.verificationCodeField];
    self.lineForVerificationCodeField = [[UIView alloc] init].fp_backgroundColor(HexadecimalColor(@"#F07896"));
    [self.view addSubview:self.lineForVerificationCodeField];
    self.sendButton = [[UIButton alloc] init].fp_addTargetActionForControlEvents(self,@selector(onSendButtonTap), UIControlEventTouchUpInside);
    [self.sendButton setBackgroundImage:IMAGE_NAMED(@"OmButton0") forState:UIControlStateNormal];
    [self.sendButton setTitle:ASLocalizedString(@"发送") forState:UIControlStateNormal];
    [self.sendButton setTitleEdgeInsets:UIEdgeInsetsMake(0, 0, RPX(22), 0)];
    self.sendButton.titleLabel.font = RPXFont(14);
    [self.view addSubview:self.sendButton];
}
- (void)layoutComponents {
    [self.nowverificationCodeField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(RPX(30));
        make.right.equalTo(self.view).offset(RPX(-30));
        make.top.equalTo(self.view).offset(RPX(32));
    }];
    [self.lineForNowverificationCodeField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.nowverificationCodeField.mas_bottom).offset(RPX(13));
        make.centerX.equalTo(self.view);
        make.width.equalTo(@(RPX(345)));
        make.height.equalTo(@(1));
    }];
    [self.comfirmNewverificationCodeField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(RPX(30));
        make.right.equalTo(self.view).offset(RPX(-30));
        make.top.equalTo(self.lineForNowverificationCodeField.mas_bottom).offset(RPX(27));
    }];
    [self.lineForComfirmNewverificationCodeField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.comfirmNewverificationCodeField.mas_bottom).offset(RPX(13));
        make.centerX.equalTo(self.view);
        make.width.equalTo(@(RPX(345)));
        make.height.equalTo(@(1));
    }];
    [self.verificationCodeField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(RPX(30));
        make.right.equalTo(self.view).offset(RPX(-30));
        make.top.equalTo(self.lineForComfirmNewverificationCodeField.mas_bottom).offset(RPX(27));
    }];
    [self.lineForVerificationCodeField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.verificationCodeField.mas_bottom).offset(RPX(13));
        make.centerX.equalTo(self.view);
        make.width.equalTo(@(RPX(345)));
        make.height.equalTo(@(1));
    }];
    [self.sendButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.lineForVerificationCodeField.mas_bottom).offset(RPX(40));
        make.centerX.equalTo(self.view);
        make.width.equalTo(@(RPX(180)));
        make.height.equalTo(@(RPX(66)));
    }];
}
- (void)onSendButtonTap {
}
@end
